﻿using System.Configuration;

namespace CID.Web.Support.Configuration.TemplateContentEdition
{
    public class BinaryConverterAssemblyConfiguration : ConfigurationElement
    {
        private const string AssemblyNameAttribute = "assemblyName";
        private const string SpecificVersionAttribute = "specificVersion";

        [ConfigurationProperty(AssemblyNameAttribute, IsRequired = true)]
        public string AssemblyName
        {
            get { return (string)this[AssemblyNameAttribute]; }
        }

        [ConfigurationProperty(SpecificVersionAttribute, IsRequired = false, DefaultValue = true)]
        public bool SpecificVersion
        {
            get { return (bool)this[SpecificVersionAttribute]; }
        }
    }
}